package com.gzhu.knowledgeAdmin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gzhu.knowledgeAdmin.common.vo.OneLevel;
import com.gzhu.knowledgeAdmin.common.vo.PageVo;
import com.gzhu.knowledgeAdmin.common.vo.TypeTreeVo;
import com.gzhu.knowledgeAdmin.entity.Zs;
import com.gzhu.knowledgeAdmin.entity.Zsfl;

import java.util.List;
import java.util.Map;

/**
 * 知识分类表
 *
 * @author giaogiao
 * @email giaogiao@gmail.com
 * @date 2023-04-22 23:18:59
 */
public interface ZsflService extends IService<Zsfl> {

    PageVo queryPage(Map<String, Object> params);

    /*
     * 查出所有分类以及子分类，以树形结构返回
     * */
    List<TypeTreeVo> getTree();

    // 添加知识分类
    void saveZsfl(Zsfl zsfl);

    void removeZsflByIds(List<Integer> ids);

    List<OneLevel> getAlloneLevel();

    List<Integer> getAllFlIds(Zs zs);
}

